package singleton;
/**
 * static代码快
 * @author ieei
 *
 */
public class StaticBlock {
	public static void main(String[] args) {
		System.out.println(Singleton.getInstance().hashCode()==Singleton.getInstance().hashCode());
	}
}
class Singleton{
	private static Singleton singleton=null;
	private Singleton(){
		
	}
	static{
		singleton=new Singleton();
	}
	public static Singleton getInstance(){
		return singleton;
	}
}
